﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL.SystemManager
{
    public class SystemManager
    {
        OracleDAL.SystemManager.SystemManager sm = new OracleDAL.SystemManager.SystemManager();
        /// <summary>
        /// 获取备份的数据集
        /// </summary>
        /// <returns></returns>
       
        public DataSet getDs( string whereStr)
        {
            return sm.getDs( whereStr);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int deleteManager(string id)
        {
            return sm.deleteManager(id);
        }
        public int addAndUpdate(string SCHEMEID, string SCHEMENAME, string SCHEMETYPE, string EXCUTTIME, string SPLTTYPE, string EFFECTVALUE, string BACKTIME, string type, string segmentTime, string dayTime)
        {
            return sm.addAndUpdate(SCHEMEID, SCHEMENAME, SCHEMETYPE, EXCUTTIME, SPLTTYPE, EFFECTVALUE, BACKTIME, type, segmentTime, dayTime);

        }
        /// <summary>
        /// 设置是否生效
        /// </summary>
        /// <param name="id">方案id</param>
        /// <param name="type">类型（0 无效，1有效 ）</param>
        /// <returns></returns>
        public int setUsed(string id, string type)
        {
            return sm.setUsed(id, type);
        }
    }
}
